#!/usr/bin/env node

const fs = require('fs');

switch(process.argv.length){

  case 4:

   let  src = process.argv[2],
        lnk = process.argv[3];
    fs.linkSync(src,lnk);
    break;

  case 5:
    let opt = process.argv[2],
        src2 = process.argv[3],
        lnk2 = process.argv[4];

    if(opt === '-s'){
      fs.symlinkSync(src2,lnk2);
    }else{
      console.error("!!!!");
    }
    break;
  default:
    console.error("!!!!!");
}
